package org.example.repository;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.example.mapper.SysOrderMapper;
import org.example.model.po.SysOrderPO;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author shenguangyang
 */
@Repository
public class SysOrderRepository {
    @Resource
    private SysOrderMapper sysOrderMapper;

    @DS("db_order")
    public void save(SysOrderPO sysOrderPO) {
        sysOrderMapper.insert(sysOrderPO);
    }
}
